You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-30, 30' at line 14select *
from product
where p_show_siamshop='yes'
and p_stop = 0
and p_pause = ''
AND (p_tag LIKE '%จำหน่าย โพลิเมอร์%'
OR p_topic LIKE '%จำหน่าย โพลิเมอร์%'
OR p_detail LIKE '%จำหน่าย โพลิเมอร์%'
OR p_brand LIKE '%จำหน่าย โพลิเมอร์%'
OR p_model LIKE '%จำหน่าย โพลิเมอร์%'
)
ORDER BY p_shoplevel DESC , p_update DESC
LIMIT -30, 30